<!DOCTYPE html>
<html lang="zh-cn" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/css/bootstrap.min.css">
    <script src="/js/jQuery.js"></script>
    <script src="/js/bootstrap.bundle.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>
</head>
<body>
    <div class="container">
        <form action="/edit/submit" method="post" id="form" style="width: 500px;" class="mt-5 mx-auto border p-lg-4">
            <div class="form-group row">
                <label for="id" class="col-sm-3 col-form-label">唯一编号</label>
                <div class="col-sm-9">
                    <input th:value="${commodity.id}" name="id" type="text" class="form-control" id="id" readonly>
                </div>
            </div>
            <div class="form-group row">
                <label for="name" class="col-sm-3 col-form-label">商品名称</label>
                <div class="col-sm-9">
                    <input th:value="${commodity.name}" name="name" type="text" class="form-control" id="name">
                </div>
            </div>
            <div class="form-group row">
                <label for="type" class="col-sm-3 col-form-label">商品类别</label>
                <div class="col-sm-9">
                    <input th:value="${commodity.type}" name="type" type="text" class="form-control" id="type">
                </div>
            </div>
            <div class="form-group row">
                <label for="importPrice" class="col-sm-3 col-form-label">进口价格</label>
                <div class="col-sm-9">
                    <input th:value="${commodity.importPrice}" name="importPrice" type="number" step="0.1" class="form-control" id="importPrice">
                </div>
            </div>
            <div class="form-group row">
                <label for="exportPrice" class="col-sm-3 col-form-label">销售价格</label>
                <div class="col-sm-9">
                    <input th:value="${commodity.exportPrice}" name="exportPrice" type="number" step="0.1" class="form-control" id="exportPrice">
                </div>
            </div>
            <div class="form-group row">
                <label for="number" class="col-sm-3 col-form-label">库存数量</label>
                <div class="col-sm-9">
                    <input th:value="${commodity.number}" name="number" type="number" class="form-control" id="number">
                </div>
            </div>
            <div class="text-right">
                <a th:href="@{/}"><button type="button" class="btn btn-secondary">返回</button></a>
                <input type="submit" id="submit" class="btn btn-primary"/>
            </div>
        </form>
    </div>
</body>
</html>